﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Sales.DTO
{
   public class QuotationParticularsDTO
    {
        public QuotationDTO quotationDTO { get; set; }
        public List<ParticularsDTO> quotationParticularsDTOs { get; set; }
    }

    public class QuotationDTO
    {
        /// <summary>
        /// 报价单名称
        /// </summary>
        public string Quotation_Name { get; set; }
        /// <summary>
        /// 报价单编号
        /// </summary>
        public string Quotation_Number { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>
        public int Customer_Id { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal Tax_Rate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Quotation_Descr { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string Customer_Name { get; set; }
    };

    public class ParticularsDTO
    {
        /// <summary>
        /// 报价单编号
        /// </summary>
        [DisplayName("报价单编号")]
        public string Sales_Number { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        [DisplayName("产品Id")]
        public int Product_Id { get; set; }
        /// <summary>
        /// 新未税价格
        /// </summary>
          [DisplayName("新未税价格")]
        public decimal New_Price { get; set; }
        /// <summary>
        /// 新含税价格
        /// </summary>
        [DisplayName("新含税价格")]
        public decimal Price_Tex { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string Particulars_Descr { get; set; }

        [DisplayName("产品名称")]
        public string Product_Name { get; set; }
        /// <summary>
        /// 成品编号
        /// </summary>
        [DisplayName("成品编号")]
        public string Product_Number { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [DisplayName("规格型号")]
        public string Specification { get; set; }
        /// <summary>
        /// 成品类型
        /// </summary>
        [DisplayName("成品类型")]
        public string Finished_Type { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [DisplayName("单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        [DisplayName("税率")]
        public decimal Tax_Rate { get; set; }
        /// <summary>
        /// 原未税价格
        /// </summary>
        [DisplayName("原未税价格")]
        public decimal Untaxed_Price { get; set; }
        /// <summary>
        /// 原含税价格
        /// </summary>
        [DisplayName("原含税价格")]
        public decimal Price_Including { get; set; }
    };
}
